package com.gang.blog.dao;

import java.util.List;

import com.gang.blog.domain.Comment;
import com.gang.blog.domain.Comment2;

public interface CommentMapper {
    int deleteByPrimaryKey(Integer commentId);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer commentId);
    //联合查询blog_comment和blog_user表
    //返回包含userName属性的Comment2对象
    List<Comment2> selectComAndUser(Integer articleId);
    
    List<Comment> selectByArticleId(Integer articleId);
    
    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
    
    
}